package com.party.api.dto.wechat.requst;

import com.alibaba.fastjson.annotation.JSONField;

import static com.alibaba.fastjson.serializer.SerializerFeature.WriteMapNullValue;

/**
 * 图文素材
 * Created by cyl on 2017/9/5.
 */
public class News {
//    @JSONField(name = "media_id",serialzeFeatures = WriteMapNullValue)
//    private String mediaId;
    //标题
    @JSONField(serialzeFeatures = WriteMapNullValue)
    private String title;
    //图文消息的封面图片素材id（必须是永久mediaID）
    @JSONField(name = "thumb_media_id",serialzeFeatures = WriteMapNullValue)
    private String thumbMediaId;
    @JSONField(name = "thumb_url")
    private String thumbUrl;
    //作者
    private String author;
    //图文消息的摘要
    private String digest;
    //是否显示封面 0-不显示，1-显示
    @JSONField(name = "show_cover_pic",serialzeFeatures = WriteMapNullValue)
    private Integer showCoverPic;
    @JSONField(serialzeFeatures = WriteMapNullValue)
    private String content;
    @JSONField(name = "content_source_url",serialzeFeatures = WriteMapNullValue)
    private String contentSourceUrl;
    private String url;
    @JSONField(name = "need_open_comment")
    private Integer needOpenComment;
    @JSONField(name = "only_fans_can_comment")
    private Integer onlyFansCanComment;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getThumbMediaId() {
        return thumbMediaId;
    }

    public void setThumbMediaId(String thumbMediaId) {
        this.thumbMediaId = thumbMediaId;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public Integer getShowCoverPic() {
        return showCoverPic;
    }

    public void setShowCoverPic(Integer showCoverPic) {
        this.showCoverPic = showCoverPic;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContentSourceUrl() {
        return contentSourceUrl;
    }

    public void setContentSourceUrl(String contentSourceUrl) {
        this.contentSourceUrl = contentSourceUrl;
    }

    public String getThumbUrl() {
        return thumbUrl;
    }

    public void setThumbUrl(String thumbUrl) {
        this.thumbUrl = thumbUrl;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getNeedOpenComment() {
        return needOpenComment;
    }

    public void setNeedOpenComment(Integer needOpenComment) {
        this.needOpenComment = needOpenComment;
    }

    public Integer getOnlyFansCanComment() {
        return onlyFansCanComment;
    }

    public void setOnlyFansCanComment(Integer onlyFansCanComment) {
        this.onlyFansCanComment = onlyFansCanComment;
    }
}
